package com.hyh.main;

import com.hyh.main.display.BaseDisplay;
import com.hyh.main.display.CurrentConditionsDisplay;
import com.hyh.main.display.StatisticsDisplay;
import com.hyh.main.weatherdata.WeatherData;

public class WeatherStation {

	
	public static void main(String[] args) {
		WeatherData weatherData = new WeatherData();
		BaseDisplay currentConditionsDisplay = new CurrentConditionsDisplay(weatherData);
		BaseDisplay statisticsDisplay = new StatisticsDisplay(weatherData);
		
		weatherData.setMeasurements(1, 1, 1);
		statisticsDisplay.unRegisterObverver();
		weatherData.setMeasurements(2, 2, 2);
	}

}
